![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@rmwc/list
Advanced tools
Lists are continuous, vertical indexes of text or images.
<List>
<ListItem>Cookies</ListItem>
<ListItem>Pizza</ListItem>
<ListItem>Icecream</ListItem>
</List>
<List twoLine>
<ListItem>
<ListItemGraphic icon="star_border" />
<ListItemText>
<ListItemPrimaryText>Cookies</ListItemPrimaryText>
<ListItemSecondaryText>$4.99 a dozen</ListItemSecondaryText>
</ListItemText>
<ListItemMeta icon="info" />
</ListItem>
<ListItem>
<ListItemGraphic icon="local_pizza" />
<ListItemText>
<ListItemPrimaryText>Pizza</ListItemPrimaryText>
<ListItemSecondaryText>$1.99 a slice</ListItemSecondaryText>
</ListItemText>
<ListItemMeta icon="info" />
</ListItem>
<ListItem activated>
<ListItemGraphic icon="mood" />
<ListItemText>
<ListItemPrimaryText>Icecream</ListItemPrimaryText>
<ListItemSecondaryText>$0.99 a scoop</ListItemSecondaryText>
</ListItemText>
<ListItemMeta>Winner!</ListItemMeta>
</ListItem>
</List>
While there are siutations where you would need / want to compose the entire list yourself, it can be quite verbose. SimpleListItem
provides a compact syntax that allows you to pass all options as props. The following example is roughly equivalent to the one above.
<List twoLine>
<SimpleListItem
graphic="star_border"
text="Cookies"
secondaryText="Chocolate chip"
metaIcon="info"
/>
<SimpleListItem
graphic="local_pizza"
text="Pizza"
secondaryText="Pepperoni"
metaIcon="info"
/>
<SimpleListItem
activated
graphic="mood"
text="Icecream"
secondaryText="Chocolate cookie dough"
meta="Winner!"
/>
</List>
A ListItem component.
Name | Type | Description |
---|---|---|
activated | undefined | false | true | A modifier for an active state. |
disabled | undefined | false | true | A modifier for a disabled state. |
ripple | RipplePropT | Adds a ripple effect to the component |
selected | undefined | false | true | A modifier for a selected state. |
Primary Text for the ListItem
Secondary text for the ListItem
A graphic / icon for the ListItem
Name | Type | Description |
---|---|---|
icon | RMWC.IconPropT | The icon to use. This can be a string for a font icon, a url, or whatever the selected strategy needs. |
Meta content for the ListItem. This can either by an icon by setting the icon
prop, or any other kind of content.
Name | Type | Description |
---|---|---|
icon | RMWC.IconPropT | The icon to use. This can be a string for a font icon, a url, or whatever the selected strategy needs. |
A divider for the List
A container to group ListItems
A subheader for the ListGroup
A simple list item template.
Name | Type | Description |
---|---|---|
activated | undefined | false | true | A modifier for an active state. |
children | React.ReactNode | Children to render |
disabled | undefined | false | true | A modifier for a disabled state. |
graphic | RMWC.IconPropT | A graphic icon for the ListItem. |
meta | React.ReactNode | Meta content for the ListItem instead of an icon. |
metaIcon | RMWC.IconPropT | A meta icon for the ListItem |
ripple | RipplePropT | Adds a ripple effect to the component |
secondaryText | React.ReactNode | Secondary Text for the ListItem. |
selected | undefined | false | true | A modifier for a selected state. |
text | React.ReactNode | Text for the ListItem. |
FAQs
RMWC List component
The npm package @rmwc/list receives a total of 5,720 weekly downloads. As such, @rmwc/list popularity was classified as popular.
We found that @rmwc/list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.